YARP
Yet Another Robot Platform
yarp::os::Type Class Reference

#include <yarp/os/Type.h>

Detailed Description

Definition at line 23 of file Type.h.

Classes

class  Private
 

Public Member Functions

 Type ()
 Constructor. More...
 
 Type (const Type &rhs)
 Copy constructor. More...
 
 Type (Type &&rhs) noexcept
 Move constructor. More...
 
virtual ~Type ()
 Destructor. More...
 
Typeoperator= (const Type &rhs)
 Copy assignment operator. More...
 
Typeoperator= (Type &&rhs) noexcept
 Move assignment operator. More...
 
std::string getName () const
 
std::string getNameOnWire () const
 
bool hasName () const
 
bool isValid () const
 
std::string toString () const
 
const SearchablereadProperties () const
 
PropertywriteProperties ()
 
TypeaddProperty (const char *key, const Value &val)
 

Static Public Member Functions

static Type byName (const char *name)
 
static Type byName (const char *name, const char *name_on_wire)
 
static Type byNameOnWire (const char *name_on_wire)
 
static Type anon ()
 

Constructor & Destructor Documentation

◆ Type() [1/3]

Type::Type ( )

Constructor.

Definition at line 91 of file Type.cpp.

◆ Type() [2/3]

Type::Type ( const Type rhs)

Copy constructor.

Parameters
rhsthe Type to copy

Definition at line 96 of file Type.cpp.

◆ Type() [3/3]

Type::Type ( Type &&  rhs)
noexcept

Move constructor.

Parameters
rhsthe Type to be moved

Definition at line 101 of file Type.cpp.

◆ ~Type()

Type::~Type ( )
virtual

Destructor.

Definition at line 107 of file Type.cpp.

Member Function Documentation

◆ addProperty()

Type & Type::addProperty ( const char *  key,
const Value val 
)

Definition at line 138 of file Type.cpp.

◆ anon()

Type Type::anon ( )
static

Definition at line 199 of file Type.cpp.

◆ byName() [1/2]

Type Type::byName ( const char *  name)
static

Definition at line 176 of file Type.cpp.

◆ byName() [2/2]

Type Type::byName ( const char *  name,
const char *  name_on_wire 
)
static

Definition at line 183 of file Type.cpp.

◆ byNameOnWire()

Type Type::byNameOnWire ( const char *  name_on_wire)
static

Definition at line 191 of file Type.cpp.

◆ getName()

std::string Type::getName ( ) const

Definition at line 143 of file Type.cpp.

◆ getNameOnWire()

std::string Type::getNameOnWire ( ) const

Definition at line 148 of file Type.cpp.

◆ hasName()

bool Type::hasName ( ) const

Definition at line 153 of file Type.cpp.

◆ isValid()

bool Type::isValid ( ) const

Definition at line 158 of file Type.cpp.

◆ operator=() [1/2]

Type & Type::operator= ( const Type rhs)

Copy assignment operator.

Parameters
rhsthe Type to copy
Returns
this object

Definition at line 112 of file Type.cpp.

◆ operator=() [2/2]

Type & Type::operator= ( Type &&  rhs)
noexcept

Move assignment operator.

Parameters
rhsthe Type to be moved
Returns
this object

Definition at line 120 of file Type.cpp.

◆ readProperties()

const Searchable & Type::readProperties ( ) const

Definition at line 128 of file Type.cpp.

◆ toString()

std::string Type::toString ( ) const

Definition at line 163 of file Type.cpp.

◆ writeProperties()

Property & Type::writeProperties ( )

Definition at line 133 of file Type.cpp.


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