SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Constructs iterators that provide access to the current list of encoding names. More...

#include <rw/i18n/RWUAvailableEncodingList.h>

Public Types

typedef RWUAvailableEncodingListIterator const_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef RWUAvailableEncodingListIterator iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 

Static Public Member Functions

static iterator begin ()
 
static const_iterator cbegin ()
 
static const_iterator cend ()
 
static const_reverse_iterator crbegin ()
 
static const_reverse_iterator crend ()
 
static iterator end ()
 
static reverse_iterator rbegin ()
 
static reverse_iterator rend ()
 

Detailed Description

RWUAvailableEncodingList constructs iterators that provide access to the known list of encoding names. The list cannot be changed at run time.

The methods are all static, because there is only one list of encoding names. The iterator types are all constant, because the list is immutable. RWUAvailableEncodingList may also be instantiated to produce an object that mimics a true collection.

Example
#include <rw/i18n/RWUAvailableEncodingList.h>
#include <iostream>
int main() {
// Iterate over the list of encodings and write them
// to std::cout, obtaining iterators from the static
// RWUAvailableEncodingList begin() and end() methods.
iter != RWUAvailableEncodingList::end(); ++iter) {
std::cout << *iter << std::endl;
}
// Iterate over the list of encodings again, obtaining
// iterators from an RWUAvailableEncodingList object.
for (iter = list.begin(); iter != list.end(); ++iter) {
std::cout << *iter << std::endl;
}
return 0;
}
Provides a C++ Standard Library-compatible random-access iterator for class RWUAvailableEncodingList.
Definition RWUAvailableEncodingListIterator.h:101
Constructs iterators that provide access to the current list of encoding names.
Definition RWUAvailableEncodingList.h:99
static iterator begin()
Definition RWUAvailableEncodingList.h:206
static iterator end()
Definition RWUAvailableEncodingList.h:211
See also
RWUAvailableEncodingListIterator

Member Typedef Documentation

◆ const_iterator

A type that provides a const random-access iterator over the elements in the encoding names list.

◆ const_reverse_iterator

A type that provides a const random-access, reverse-order iterator over the elements in the encoding names list.

◆ iterator

A type that provides a random-access iterator over the elements in the encoding names list.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> RWUAvailableEncodingList::reverse_iterator

A type that provides a random-access, reverse-order iterator over the elements in the encoding names list.

Member Function Documentation

◆ begin()

RWUAvailableEncodingList::iterator RWUAvailableEncodingList::begin ( )
inlinestatic

Returns an iterator instance positioned at the first name in the list of encoding names.

◆ cbegin()

RWUAvailableEncodingList::const_iterator RWUAvailableEncodingList::cbegin ( )
inlinestatic

Returns a const_iterator instance positioned at the first name in the list of encoding names.

◆ cend()

RWUAvailableEncodingList::const_iterator RWUAvailableEncodingList::cend ( )
inlinestatic

Returns a const_iterator instance positioned one past the last name in the list of encoding names.

◆ crbegin()

RWUAvailableEncodingList::const_reverse_iterator RWUAvailableEncodingList::crbegin ( )
inlinestatic

Returns a const_reverse_iterator instance positioned at the last name in the list of encoding names.

◆ crend()

RWUAvailableEncodingList::const_reverse_iterator RWUAvailableEncodingList::crend ( )
inlinestatic

Returns a const_reverse_iterator instance positioned one prior to the first name in the list of encoding names.

◆ end()

RWUAvailableEncodingList::iterator RWUAvailableEncodingList::end ( )
inlinestatic

Returns an iterator instance positioned one past the last name in the list of encoding names.

◆ rbegin()

RWUAvailableEncodingList::reverse_iterator RWUAvailableEncodingList::rbegin ( )
inlinestatic

Returns a reverse_iterator instance positioned at the last name in the list of encoding names.

◆ rend()

RWUAvailableEncodingList::reverse_iterator RWUAvailableEncodingList::rend ( )
inlinestatic

Returns a reverse_iterator instance positioned one prior to the first name in the list of encoding names.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.