Foxit PDF SDK
CFX_PSVTemplate< BaseType > 模板类 参考

继承自 CFX_Object .

Public 成员函数

 CFX_PSVTemplate ()
 构造函数。
 
 CFX_PSVTemplate (BaseType new_x, BaseType new_y)
 带参数的构造函数。 更多...
 
 CFX_PSVTemplate (const CFX_PSVTemplate &other)
 拷贝构造函数。 更多...
 
void Add (BaseType x, BaseType y)
 添加一个点。 更多...
 
FXT_PSVoperator *= (BaseType lamda)
 重载运算符*=。 更多...
 
FXT_PSVoperator -= (const FXT_PSV &obj)
 重载运算符-=。 更多...
 
FXT_PSVoperator+= (const FXT_PSV &obj)
 重载运算符+=。 更多...
 
FXT_PSVoperator/= (BaseType lamda)
 重载运算符/=。 更多...
 
void Reset ()
 重置到基点。 更多...
 
void Set (BaseType x, BaseType y)
 设置值。 更多...
 
void Set (const FXT_PSV &psv)
 设置值。 更多...
 
void Subtract (BaseType x, BaseType y)
 减去一个点。 更多...
 

Public 属性

BaseType x
 点的x坐标。
 
BaseType y
 点的y坐标。
 

友元

FX_BOOL operator != (const FXT_PSV &obj1, const FXT_PSV &obj2)
 重载运算符!=。 更多...
 
FXT_PSV operator * (const FXT_PSV &obj, BaseType lamda)
 重载运算符*。 更多...
 
FXT_PSV operator * (BaseType lamda, const FXT_PSV &obj)
 重载运算符*。 更多...
 
FXT_PSV operator - (const FXT_PSV &obj1, const FXT_PSV &obj2)
 重载运算符-。 更多...
 
FXT_PSV operator+ (const FXT_PSV &obj1, const FXT_PSV &obj2)
 重载运算符+。 更多...
 
FXT_PSV operator/ (const FXT_PSV &obj, BaseType lamda)
 重载运算符/。 更多...
 
FX_BOOL operator== (const FXT_PSV &obj1, const FXT_PSV &obj2)
 重载运算符==。 更多...
 

详细描述

template<class BaseType>
class CFX_PSVTemplate< BaseType >

此类表示平面上点的模板。

构造及析构函数说明

◆ CFX_PSVTemplate() [1/2]

template<class BaseType>
CFX_PSVTemplate< BaseType >::CFX_PSVTemplate ( BaseType  new_x,
BaseType  new_y 
)
inline

带参数的构造函数。

参数
[in]new_x点的 x 坐标。
[in]new_y点的 y 坐标。

◆ CFX_PSVTemplate() [2/2]

template<class BaseType>
CFX_PSVTemplate< BaseType >::CFX_PSVTemplate ( const CFX_PSVTemplate< BaseType > &  other)
inline

拷贝构造函数。

参数
[in]other另一个对象。

成员函数说明

◆ Add()

template<class BaseType>
void CFX_PSVTemplate< BaseType >::Add ( BaseType  x,
BaseType  y 
)
inline

添加一个点。

参数
[in]x被减数点的x坐标。
[in]y被减数点的y坐标。
返回
无。

◆ operator *=()

template<class BaseType>
FXT_PSV& CFX_PSVTemplate< BaseType >::operator *= ( BaseType  lamda)
inline

重载运算符*=。

参数
[in]lamda要乘以的值。
返回
当前对象本身的引用。

◆ operator -=()

template<class BaseType>
FXT_PSV& CFX_PSVTemplate< BaseType >::operator -= ( const FXT_PSV obj)
inline

重载运算符-=。

参数
[in]obj另一个值对象。
返回
当前对象本身的引用。

◆ operator+=()

template<class BaseType>
FXT_PSV& CFX_PSVTemplate< BaseType >::operator+= ( const FXT_PSV obj)
inline

重载运算符+=。

参数
[in]obj另一个值对象。
返回
当前对象本身的引用。

◆ operator/=()

template<class BaseType>
FXT_PSV& CFX_PSVTemplate< BaseType >::operator/= ( BaseType  lamda)
inline

重载运算符/=。

参数
[in]lamda要除以的值。
返回
当前对象本身的引用。

◆ Reset()

template<class BaseType>
void CFX_PSVTemplate< BaseType >::Reset ( )
inline

重置到基点。

返回
无。

◆ Set() [1/2]

template<class BaseType>
void CFX_PSVTemplate< BaseType >::Set ( BaseType  x,
BaseType  y 
)
inline

设置值。

参数
[in]x点的x坐标。
[in]y点的y坐标。
返回
无。

◆ Set() [2/2]

template<class BaseType>
void CFX_PSVTemplate< BaseType >::Set ( const FXT_PSV psv)
inline

设置值。

参数
[in]psv另一个值对象。
返回
无。

◆ Subtract()

template<class BaseType>
void CFX_PSVTemplate< BaseType >::Subtract ( BaseType  x,
BaseType  y 
)
inline

减去一个点。

参数
[in]x加数点的x坐标。
[in]y加数点的y坐标。
返回
无。

友元及相关函数文档

◆ operator !=

template<class BaseType>
FX_BOOL operator != ( const FXT_PSV obj1,
const FXT_PSV obj2 
)
friend

重载运算符!=。

参数
[in]obj1第一个值对象。
[in]obj2第二个值对象。
返回
true表示输入的值对象不相等,false表示相等。

◆ operator * [1/2]

template<class BaseType>
FXT_PSV operator * ( const FXT_PSV obj,
BaseType  lamda 
)
friend

重载运算符*。

参数
[in]obj值对象。
[in]lamda要乘以的值。
返回
结果值对象。

◆ operator * [2/2]

template<class BaseType>
FXT_PSV operator * ( BaseType  lamda,
const FXT_PSV obj 
)
friend

重载运算符*。

参数
[in]lamda要乘以的值。
[in]obj要乘以的值对象。
返回
结果值对象。

◆ operator -

template<class BaseType>
FXT_PSV operator - ( const FXT_PSV obj1,
const FXT_PSV obj2 
)
friend

重载运算符-。

参数
[in]obj1第一个值对象。
[in]obj2第二个值对象。
返回
结果值对象。

◆ operator+

template<class BaseType>
FXT_PSV operator+ ( const FXT_PSV obj1,
const FXT_PSV obj2 
)
friend

重载运算符+。

参数
[in]obj1第一个值对象。
[in]obj2第二个值对象。
返回
结果值对象。

◆ operator/

template<class BaseType>
FXT_PSV operator/ ( const FXT_PSV obj,
BaseType  lamda 
)
friend

重载运算符/。

参数
[in]obj值对象。
[in]lamda要除以的值。
返回
结果值对象。

◆ operator==

template<class BaseType>
FX_BOOL operator== ( const FXT_PSV obj1,
const FXT_PSV obj2 
)
friend

重载运算符==。

参数
[in]obj1第一个值对象。
[in]obj2第二个值对象。
返回
true表示输入的值对象相等,false表示不相等。