Public Member Functions | Private Member Functions | Private Attributes | List of all members
rm_referee::Graph Class Reference

#include <graph.h>

Public Member Functions

std::string getCharacters ()
 
rm_referee::GraphConfig getConfig ()
 
int getOperation ()
 
 Graph (const XmlRpc::XmlRpcValue &config, Base &base, int id)
 
bool isRepeated ()
 
bool isString ()
 
void setColor (const rm_referee::GraphColor &color)
 
void setContent (const std::string &content)
 
void setEndAngle (int end_angle)
 
void setEndX (int end_x)
 
void setEndY (int end_y)
 
void setFloatNum (float data)
 
void setIntNum (int num)
 
void setOperation (const rm_referee::GraphOperation &operation)
 
void setRadius (int radius)
 
void setStartAngle (int start_angle)
 
void setStartX (int start_x)
 
void setStartY (int start_y)
 
void updateLastConfig ()
 
void updatePosition (int index)
 

Private Member Functions

rm_referee::GraphColor getColor (const std::string &color)
 
rm_referee::GraphType getType (const std::string &type)
 
void initPosition (XmlRpc::XmlRpcValue value, std::vector< std::pair< int, int >> &positions)
 

Private Attributes

Basebase_
 
rm_referee::GraphConfig config_ {}
 
std::string content_ {}
 
std::vector< std::pair< int, int > > end_positions_ {}
 
rm_referee::GraphConfig last_config_ {}
 
std::string last_content_ {}
 
std::string last_title_ {}
 
std::vector< std::pair< int, int > > start_positions_ {}
 
std::string title_ {}
 

Detailed Description

Definition at line 12 of file graph.h.

Constructor & Destructor Documentation

◆ Graph()

rm_referee::Graph::Graph ( const XmlRpc::XmlRpcValue config,
Base base,
int  id 
)
explicit

Definition at line 7 of file graph.cpp.

Member Function Documentation

◆ getCharacters()

std::string rm_referee::Graph::getCharacters ( )
inline

Definition at line 29 of file graph.h.

◆ getColor()

rm_referee::GraphColor rm_referee::Graph::getColor ( const std::string &  color)
private

Definition at line 97 of file graph.cpp.

◆ getConfig()

rm_referee::GraphConfig rm_referee::Graph::getConfig ( )
inline

Definition at line 25 of file graph.h.

◆ getOperation()

int rm_referee::Graph::getOperation ( )
inline

Definition at line 21 of file graph.h.

◆ getType()

rm_referee::GraphType rm_referee::Graph::getType ( const std::string &  type)
private

Definition at line 119 of file graph.cpp.

◆ initPosition()

void rm_referee::Graph::initPosition ( XmlRpc::XmlRpcValue  value,
std::vector< std::pair< int, int >> &  positions 
)
private

Definition at line 84 of file graph.cpp.

◆ isRepeated()

bool rm_referee::Graph::isRepeated ( )
inline

Definition at line 93 of file graph.h.

◆ isString()

bool rm_referee::Graph::isString ( )
inline

Definition at line 97 of file graph.h.

◆ setColor()

void rm_referee::Graph::setColor ( const rm_referee::GraphColor color)
inline

Definition at line 34 of file graph.h.

◆ setContent()

void rm_referee::Graph::setContent ( const std::string &  content)
inline

Definition at line 38 of file graph.h.

◆ setEndAngle()

void rm_referee::Graph::setEndAngle ( int  end_angle)
inline

Definition at line 88 of file graph.h.

◆ setEndX()

void rm_referee::Graph::setEndX ( int  end_x)
inline

Definition at line 44 of file graph.h.

◆ setEndY()

void rm_referee::Graph::setEndY ( int  end_y)
inline

Definition at line 48 of file graph.h.

◆ setFloatNum()

void rm_referee::Graph::setFloatNum ( float  data)
inline

Definition at line 65 of file graph.h.

◆ setIntNum()

void rm_referee::Graph::setIntNum ( int  num)
inline

Definition at line 56 of file graph.h.

◆ setOperation()

void rm_referee::Graph::setOperation ( const rm_referee::GraphOperation operation)
inline

Definition at line 17 of file graph.h.

◆ setRadius()

void rm_referee::Graph::setRadius ( int  radius)
inline

Definition at line 52 of file graph.h.

◆ setStartAngle()

void rm_referee::Graph::setStartAngle ( int  start_angle)
inline

Definition at line 83 of file graph.h.

◆ setStartX()

void rm_referee::Graph::setStartX ( int  start_x)
inline

Definition at line 75 of file graph.h.

◆ setStartY()

void rm_referee::Graph::setStartY ( int  start_y)
inline

Definition at line 79 of file graph.h.

◆ updateLastConfig()

void rm_referee::Graph::updateLastConfig ( )
inline

Definition at line 101 of file graph.h.

◆ updatePosition()

void rm_referee::Graph::updatePosition ( int  index)

Definition at line 70 of file graph.cpp.

Member Data Documentation

◆ base_

Base& rm_referee::Graph::base_
private

Definition at line 113 of file graph.h.

◆ config_

rm_referee::GraphConfig rm_referee::Graph::config_ {}
private

Definition at line 115 of file graph.h.

◆ content_

std::string rm_referee::Graph::content_ {}
private

Definition at line 116 of file graph.h.

◆ end_positions_

std::vector<std::pair<int, int> > rm_referee::Graph::end_positions_ {}
private

Definition at line 114 of file graph.h.

◆ last_config_

rm_referee::GraphConfig rm_referee::Graph::last_config_ {}
private

Definition at line 115 of file graph.h.

◆ last_content_

std::string rm_referee::Graph::last_content_ {}
private

Definition at line 116 of file graph.h.

◆ last_title_

std::string rm_referee::Graph::last_title_ {}
private

Definition at line 116 of file graph.h.

◆ start_positions_

std::vector<std::pair<int, int> > rm_referee::Graph::start_positions_ {}
private

Definition at line 114 of file graph.h.

◆ title_

std::string rm_referee::Graph::title_ {}
private

Definition at line 116 of file graph.h.


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


rm_referee
Author(s): Qiayuan Liao
autogenerated on Tue May 6 2025 02:23:49