VisionServer  v2.1.1-1-g21dc5465
FRC vision library
vs2::UniqueTarget< derived_t > Class Template Reference

#include <target.h>

+ Inheritance diagram for vs2::UniqueTarget< derived_t >:
+ Collaboration diagram for vs2::UniqueTarget< derived_t >:

Public Member Functions

 UniqueTarget ()=delete
 
 UniqueTarget (const std::string &n)
 
 UniqueTarget (std::string &&n)
 
 UniqueTarget (const UniqueTarget &)=default
 
 UniqueTarget (UniqueTarget &&)=default
 
- Public Member Functions inherited from vs2::Target
 Target ()=delete
 
 Target (const std::string &n)
 
 Target (std::string &&n)
 
 Target (const Target &)=default
 
 Target (Target &&)=default
 
virtual ~Target ()
 
const std::string & getName () const
 

Protected Member Functions

void setPos (double x, double y, double z)
 
void setAngle (double ud, double lr)
 
void setDist (double d)
 
void setExpired ()
 
void setValid ()
 
- Protected Member Functions inherited from vs2::Target
void setPos (double x, double y, double z)
 
void setAngle (double ud, double lr)
 
void setDist (double d)
 
void setExpired ()
 
void setValid ()
 

Private Types

typedef struct UniqueTarget< derived_t > This_t
 

Private Member Functions

Targetsuper ()
 

Additional Inherited Members

- Public Types inherited from vs2::Target
enum  Status { INVALID = -1 , EXPIRED = 0 , VALID = 1 }
 
- Static Public Member Functions inherited from vs2::Target
static const std::shared_ptr< nt::NetworkTable > & ntable ()
 
- Protected Attributes inherited from vs2::Target
const std::string name
 
const std::shared_ptr< nt::NetworkTable > table
 

Detailed Description

template<class derived_t = void>
class vs2::UniqueTarget< derived_t >

UniqueTarget<> must be extended by another class so that names match instancing types.

Definition at line 76 of file target.h.

Member Typedef Documentation

◆ This_t

template<class derived_t = void>
typedef struct UniqueTarget< derived_t > vs2::UniqueTarget< derived_t >::This_t
private

Definition at line 77 of file target.h.

Constructor & Destructor Documentation

◆ UniqueTarget() [1/5]

template<class derived_t = void>
vs2::UniqueTarget< derived_t >::UniqueTarget ( )
delete

◆ UniqueTarget() [2/5]

template<class derived_t = void>
vs2::UniqueTarget< derived_t >::UniqueTarget ( const std::string &  n)
inline

Definition at line 81 of file target.h.

◆ UniqueTarget() [3/5]

template<class derived_t = void>
vs2::UniqueTarget< derived_t >::UniqueTarget ( std::string &&  n)
inline

Definition at line 82 of file target.h.

◆ UniqueTarget() [4/5]

template<class derived_t = void>
vs2::UniqueTarget< derived_t >::UniqueTarget ( const UniqueTarget< derived_t > &  )
default

◆ UniqueTarget() [5/5]

template<class derived_t = void>
vs2::UniqueTarget< derived_t >::UniqueTarget ( UniqueTarget< derived_t > &&  )
default

Member Function Documentation

◆ super()

template<class derived_t = void>
Target * vs2::UniqueTarget< derived_t >::super ( )
inlineprivate

Definition at line 78 of file target.h.

◆ setPos()

template<class derived_t = void>
void vs2::UniqueTarget< derived_t >::setPos ( double  x,
double  y,
double  z 
)
inlineprotected

Definition at line 87 of file target.h.

◆ setAngle()

template<class derived_t = void>
void vs2::UniqueTarget< derived_t >::setAngle ( double  ud,
double  lr 
)
inlineprotected

Definition at line 88 of file target.h.

◆ setDist()

template<class derived_t = void>
void vs2::UniqueTarget< derived_t >::setDist ( double  d)
inlineprotected

Definition at line 89 of file target.h.

◆ setExpired()

template<class derived_t = void>
void vs2::UniqueTarget< derived_t >::setExpired ( )
inlineprotected

Definition at line 90 of file target.h.

◆ setValid()

template<class derived_t = void>
void vs2::UniqueTarget< derived_t >::setValid ( )
inlineprotected

Definition at line 91 of file target.h.


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