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

#include <yarp/os/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 ()
 

Detailed Description

Definition at line 23 of file Type.h.

Constructor & Destructor Documentation

◆ Type() [1/3]

Type::Type ( )

Constructor.

Definition at line 90 of file Type.cpp.

◆ Type() [2/3]

Type::Type ( const Type rhs)

Copy constructor.

Parameters
rhsthe Type to copy

Definition at line 95 of file Type.cpp.

◆ Type() [3/3]

Type::Type ( Type &&  rhs)
noexcept

Move constructor.

Parameters
rhsthe Type to be moved

Definition at line 100 of file Type.cpp.

◆ ~Type()

Type::~Type ( )
virtual

Destructor.

Definition at line 106 of file Type.cpp.

Member Function Documentation

◆ addProperty()

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

Definition at line 137 of file Type.cpp.

◆ anon()

Type Type::anon ( )
static

Definition at line 197 of file Type.cpp.

◆ byName() [1/2]

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

Definition at line 174 of file Type.cpp.

◆ byName() [2/2]

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

Definition at line 181 of file Type.cpp.

◆ byNameOnWire()

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

Definition at line 189 of file Type.cpp.

◆ getName()

std::string Type::getName ( ) const

Definition at line 142 of file Type.cpp.

◆ getNameOnWire()

std::string Type::getNameOnWire ( ) const

Definition at line 147 of file Type.cpp.

◆ hasName()

bool Type::hasName ( ) const

Definition at line 152 of file Type.cpp.

◆ isValid()

bool Type::isValid ( ) const

Definition at line 157 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 111 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 119 of file Type.cpp.

◆ readProperties()

const Searchable & Type::readProperties ( ) const

Definition at line 127 of file Type.cpp.

◆ toString()

std::string Type::toString ( ) const

Definition at line 162 of file Type.cpp.

◆ writeProperties()

Property & Type::writeProperties ( )

Definition at line 132 of file Type.cpp.


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