Main Page
Class List
Class Index
Class Hierarchy
Class Members
All
Classes
Functions
Variables
Typedefs
Friends
Pages
Core
IComparator.h
1
//------------------------------------------------------------------------------
2
//
3
// Copyright (c) 2012 Glympse Inc. All rights reserved.
4
//
5
//------------------------------------------------------------------------------
6
7
#ifndef ICOMPARATOR_H__GLYMPSE__
8
#define ICOMPARATOR_H__GLYMPSE__
9
10
namespace
Glympse
11
{
12
13
template
<
class
T >
struct
IComparator
:
public
ICommon
14
{
21
public
:
virtual
int32
compare
(
const
T& ob1,
const
T& obj2) = 0;
22
};
23
24
template
<
class
T >
class
GComparator
25
{
26
private
:
GComparator
();
27
public
:
typedef
O< IComparator< T >
>
ptr
;
28
};
29
30
}
31
32
#endif // !ICOMPARATOR_H__GLYMPSE__
Generated on Tue Jun 26 2018 08:46:46 by
1.8.4