Geogram Version 1.9.6-rc
A programming library of geometric algorithms
Loading...
Searching...
No Matches
GEO::CSGCompiler::ArgList Class Reference

A parsed argument list in a .csg file. More...

#include <geogram/mesh/mesh_CSG.h>

Public Types

typedef std::pair< std::string, ValueArg
 

Public Member Functions

index_t size () const
 
const std::string & ith_arg_name (index_t i) const
 
const Valueith_arg_val (index_t i) const
 
void add_arg (const std::string &name, const Value &value)
 
bool has_arg (const std::string &name) const
 
const Valueget_arg (const std::string &name) const
 
double get_arg (const std::string &name, double default_value) const
 
int get_arg (const std::string &name, int default_value) const
 
bool get_arg (const std::string &name, bool default_value) const
 
vec2 get_arg (const std::string &name, vec2 default_value) const
 
vec3 get_arg (const std::string &name, vec3 default_value) const
 
vec4 get_arg (const std::string &name, vec4 default_value) const
 
mat4 get_arg (const std::string &name, const mat4 &default_value) const
 
std::string get_arg (const std::string &name, const std::string &default_value) const
 
std::string get_arg (const std::string &name, const char *default_value) const
 

Detailed Description

A parsed argument list in a .csg file.

Stores name-value pairs.

Definition at line 546 of file mesh_CSG.h.

Member Typedef Documentation

◆ Arg

typedef std::pair<std::string, Value> GEO::CSGCompiler::ArgList::Arg

Definition at line 548 of file mesh_CSG.h.

Member Function Documentation

◆ get_arg()

std::string GEO::CSGCompiler::ArgList::get_arg ( const std::string &  name,
const char *  default_value 
) const
inline

Definition at line 579 of file mesh_CSG.h.

◆ ith_arg_name()

const std::string & GEO::CSGCompiler::ArgList::ith_arg_name ( index_t  i) const
inline

Definition at line 554 of file mesh_CSG.h.

◆ ith_arg_val()

const Value & GEO::CSGCompiler::ArgList::ith_arg_val ( index_t  i) const
inline

Definition at line 559 of file mesh_CSG.h.

◆ size()

index_t GEO::CSGCompiler::ArgList::size ( ) const
inline

Definition at line 550 of file mesh_CSG.h.


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