This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::StringStack class

Header: #include <UnigineString.h>

A string that is stored in a stack. Using this class improves performance if the string is constantly changing during its lifetime, and its maximum size is known, or if the string is used as a local variable.

Notice
An instance of the StringStack class automatically becomes an instance of the String class if its size exceeds the maximum value of 256 characters.

StringStack Class

Members


static StringStackPtr create ( ) #

Default constructor that creates an empty string stack of the default size (256 characters).

static StringStackPtr create ( const String & s ) #

Copy constructor. Creates a string stack that stores a given string.

Arguments

  • const String & s - String to be copied.

static StringStackPtr create ( const StringStack<Capacity> & s ) #

Copy constructor.

Arguments

  • const StringStack<Capacity> & s - String stack of a specified size.

static StringStackPtr create ( const char * s ) #

Copy constructor.

Arguments

  • const char * s - Pointer to a null-terminated string.

void destroy ( ) #

Destroys the string.

void StringStack<Capacity> ( StringStack<OtherCapacity> && s ) #

Copies a given string stack to the current string stack.

Arguments

  • StringStack<OtherCapacity> && s - String stack of a given size to be copied.

StringStack<Capacity> & operator= ( const StringStack<Capacity> & s ) #

Assignment operator for the string stack.

Arguments

  • const StringStack<Capacity> & s - String stack.

StringStack<Capacity> & operator= ( const char * s ) #

Assignment operator for the string stack.

Arguments

  • const char * s - Pointer to a null-terminated string.

StringStack<Capacity> & operator= ( StringStack<OtherCapacity> && s ) #

Assignment operator for the string stack.

Arguments

  • StringStack<OtherCapacity> && s - String stack of the given size.

StringStack<Capacity> & operator= ( const String & s ) #

Assignment operator for the string stack.

Arguments

Last update: 2023-06-23
Build: ()