Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F5330601
typehints.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 20, 11:22 PM
Size
908 B
Mime Type
text/x-c++
Expires
Sun, Nov 22, 11:22 PM (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
315933
Attached To
rXR Xreate
typehints.h
View Options
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* typehints.h
*
* Author: pgess <v.melnychenko@xreate.org>
*/
/**
* \file typehints.h
* \brief Type inference hints
*/
#ifndef XREATE_TYPEHINTS_H
#define XREATE_TYPEHINTS_H
#include "ast.h"
namespace xreate{namespace typehints{
struct IntBits{
unsigned int size;
};
struct Array{
size_t size;
};
template<class Typ>
Typ getHint(const Expression& e, const Typ& def);
template<>
IntBits getHint(const Expression& e, const IntBits& def);
template<>
Array getHint(const Expression& e, const Array& def);
template<class Typ>
Typ parse(const Expression& e);
template<> IntBits parse(const Expression& e);
template<> Array parse(const Expression& e);
}}
#endif //XREATE_TYPEHINTS_H
Event Timeline
Log In to Comment