调整C++接口

Signed-off-by: spriteray <spriteray@gmail.com>