Blender V5.0
Freestyle::Id Class Reference

#include <Id.h>

Public Types

typedef uint id_type

Public Member Functions

 Id ()
 Id (id_type id)
 Id (id_type ifirst, id_type isecond)
 Id (const Id &iBrother)
Idoperator= (const Id &iBrother)
id_type getFirst () const
id_type getSecond () const
void setFirst (id_type first)
void setSecond (id_type second)
bool operator== (const Id &id) const
bool operator!= (const Id &id) const
bool operator< (const Id &id) const

Detailed Description

Class used to tag any object by an id. It is made of two unsigned-integers.

Definition at line 19 of file Id.h.

Member Typedef Documentation

◆ id_type

Definition at line 21 of file Id.h.

Constructor & Destructor Documentation

◆ Id() [1/4]

Freestyle::Id::Id ( )
inline

Default constructor

Definition at line 24 of file Id.h.

Referenced by Id(), operator!=(), operator<(), operator=(), and operator==().

◆ Id() [2/4]

Freestyle::Id::Id ( id_type id)
inline

Builds an Id from an integer. The second number is set to 0.

Definition at line 33 of file Id.h.

◆ Id() [3/4]

Freestyle::Id::Id ( id_type ifirst,
id_type isecond )
inline

Builds the Id from the two numbers

Definition at line 40 of file Id.h.

◆ Id() [4/4]

Freestyle::Id::Id ( const Id & iBrother)
inline

Copy constructor

Definition at line 47 of file Id.h.

References Id().

Member Function Documentation

◆ getFirst()

◆ getSecond()

◆ operator!=()

bool Freestyle::Id::operator!= ( const Id & id) const
inline

Operator!=

Definition at line 92 of file Id.h.

References Id().

◆ operator<()

bool Freestyle::Id::operator< ( const Id & id) const
inline

Operator<

Definition at line 98 of file Id.h.

References Id().

◆ operator=()

Id & Freestyle::Id::operator= ( const Id & iBrother)
inline

Operator=

Definition at line 54 of file Id.h.

References Id().

◆ operator==()

bool Freestyle::Id::operator== ( const Id & id) const
inline

Operator==

Definition at line 86 of file Id.h.

References Id().

◆ setFirst()

void Freestyle::Id::setFirst ( id_type first)
inline

Sets the first number constituting the Id

Definition at line 74 of file Id.h.

◆ setSecond()

void Freestyle::Id::setSecond ( id_type second)
inline

The documentation for this class was generated from the following file: