CopiedString m_description;
EntityClassAttribute(){
}
+ EntityClassAttribute(const EntityClassAttribute& attr) = default;
EntityClassAttribute( const char* type, const char* name, const char* value = "", const char* description = "" ) : m_type( type ), m_name( name ), m_value( value ), m_description( description ){
}
+ EntityClassAttribute& operator=(const EntityClassAttribute& attr) = default;
};
typedef std::pair<CopiedString, EntityClassAttribute> EntityClassAttributePair;
void set( float pitch, float yaw, float roll );
- void operator=( angles_t const &a );
- void operator=( idVec3 const &a );
+ angles_t &operator=( angles_t const &a ) = default;
+ angles_t &operator=( idVec3 const &a );
friend angles_t operator+( const angles_t &a, const angles_t &b );
angles_t &operator+=( angles_t const &a );
angles_t &operator*=( float a );
friend int operator==( angles_t &a, angles_t &b );
-
friend int operator!=( angles_t &a, angles_t &b );
void toVectors( idVec3 *forward, idVec3 *right = NULL, idVec3 *up = NULL );
this->roll = roll;
}
-inline void angles_t::operator=( angles_t const &a ) {
- pitch = a.pitch;
- yaw = a.yaw;
- roll = a.roll;
-}
-
-inline void angles_t::operator=( idVec3 const &a ) {
+inline angles_t &angles_t::operator=( idVec3 const &a ) {
pitch = a[ 0 ];
yaw = a[ 1 ];
roll = a[ 2 ];
+ return *this;
}
inline angles_t operator+( const angles_t &a, const angles_t &b ) {
quat_t();
quat_t( float x, float y, float z, float w );
+ quat_t( const quat_t & ) = default;
friend void toQuat( idVec3_t &src, quat_t &dst );
friend void toQuat( angles_t &src, quat_t &dst );
void set( float x, float y, float z, float w );
- void operator=( quat_t a );
+ quat_t &operator=( const quat_t &a ) = default;
friend quat_t operator+( quat_t a, quat_t b );
quat_t &operator+=( quat_t a );
this->w = w;
}
-inline void quat_t::operator=( quat_t a ) {
- x = a.x;
- y = a.y;
- z = a.z;
- w = a.w;
-}
-
inline quat_t operator+( quat_t a, quat_t b ) {
return quat_t( a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w );
}
idVec3() {dist = 0.0f; };
#endif
idVec3( const float x, const float y, const float z );
+ idVec3( const idVec3& ) = default;
operator float *();
idVec3 operator-() const;
- idVec3 &operator=( const idVec3 &a );
+ idVec3 &operator=( const idVec3 &a ) = default;
float operator*( const idVec3 &a ) const;
idVec3 operator*( const float a ) const;
return idVec3( -x, -y, -z );
}
-ID_INLINE idVec3 &idVec3::operator=( const idVec3 &a ) {
- x = a.x;
- y = a.y;
- z = a.z;
-
- return *this;
-}
-
ID_INLINE void idVec3::set( const float x, const float y, const float z ) {
this->x = x;
this->y = y;
: Buffer( range ){
}
+ String(const String&) = default;
+
String& operator=( const String& other ){
String temp( other );
temp.swap( *this );
return FacePlane::m_type == eBrushTypeDoom3 || FacePlane::m_type == eBrushTypeQuake4;
}
+ FacePlane& operator=(const FacePlane&) = default;
+
class SavedState
{
public: