LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::WS::Symbol Struct Reference

Description

Structure representing any symbol in Wolfram Language.

+ Inheritance diagram for LLU::WS::Symbol:

#include <Utilities.h>

Public Member Functions

 Symbol ()=default
 Default constructor. More...
 
 Symbol (std::string h)
 Constructs a Symbol given its head. More...
 
const std::string & getHead () const
 Get Symbol name/head. More...
 
void setHead (std::string h)
 Set Symbol name/head. More...
 

Constructor & Destructor Documentation

◆ Symbol() [1/2]

LLU::WS::Symbol::Symbol ( )
default

Default constructor.

The head is empty and such Symbol can be used as argument of WSStream::operator>>, so to read a Symbol from top-level.

◆ Symbol() [2/2]

LLU::WS::Symbol::Symbol ( std::string  h)
inlineexplicit

Constructs a Symbol given its head.

Parameters
h- head (or Symbol's name)

Member Function Documentation

◆ getHead()

const std::string & LLU::WS::Symbol::getHead ( ) const

Get Symbol name/head.

Returns
head

◆ setHead()

void LLU::WS::Symbol::setHead ( std::string  h)

Set Symbol name/head.

Parameters
h- new head for the Symbol