CTR Pia  4.11.3
Game Communication Engine
transport_StationLocationContainer.h
1 /*---------------------------------------------------------------------------*
2  Project: Pia
3  File: transport_StationLocationContainer.h
4 
5  Copyright Nintendo. All rights reserved.
6 
7  These coded instructions, statements, and computer programs contain
8  proprietary information of Nintendo of America Inc. and/or Nintendo
9  Company Ltd., and are protected by Federal copyright law. They may
10  not be disclosed to third parties or copied or duplicated in any form,
11  in whole or in part, without the prior written consent of Nintendo.
12  *---------------------------------------------------------------------------*/
13 
14 
15 #pragma once
16 
17 #include <pia/transport/transport_definitions.h>
18 
19 #include <pia/common/common_SimpleContainer.h>
20 #include <pia/transport/transport_StationLocation.h>
21 
22 
23 namespace nn
24 {
25 namespace pia
26 {
27 namespace transport
28 {
29 
30 const size_t STATION_LOCATION_CONTAINER_MAX_SIZE = 16;
31 
32 /*!
33 @brief Represents the <tt>StationLocation</tt> container type.
34 
35 @date 2012-04-06 Initial version.
36 */
37 class StationLocationContainer : public nn::pia::common::SimpleContainer<nn::pia::transport::StationLocation, STATION_LOCATION_CONTAINER_MAX_SIZE>
38 {
39 public:
40  virtual void Trace(u64 flag) const;
41 };
42 
43 //n1589: With <tt>PiaInet</tt>, there is optimization because (only) two <tt>StationLocation</tt> container elements are frequently used.
44 /*!
45 @cond PRIVATE
46 @brief Represents a container that possesses only two <tt>StationLocation</tt> instances.
47 
48 @date 2012-04-06 Initial version.
49 */
50 class StationLocationPair : public nn::pia::common::SimpleContainer<nn::pia::transport::StationLocation, 2>
51 {
52 public:
53  virtual void Trace(u64 flag) const;
54 };
55 //! @endcond
56 }
57 }
58 } // end of namespace nn::pia::transport
Definition: assert.h:115
Represents the StationLocation container type.
Definition: transport_StationLocationContainer.h:37