repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/ContactUsViewController/IRContactViewController.h | <reponame>mohsinalimat/ExpenseManager
//
// IRContactViewController.h
// ExpenseManager
//
// Created by <NAME> on 11/10/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
@interface IRContactViewController : UIViewController<UITextViewDelegate,MFMail... |
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRGeneralSettingsTableViewCell.h | //
// IRGeneralSettingsTableViewCell.h
// ExpenseManager
//
// Created by <NAME> on 14/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol IRGeneralSettingsDelegate <NSObject>
- (void)reminderSwitchValueChanged:(UISwitch *)reminderSwitch;
@end
@interface IRGeneralSett... |
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRMenuTableViewCell.h | <filename>iRun/Classes/CustomCells/IRMenuTableViewCell.h
//
// IRMenuTableViewCell.h
// iRun
//
// Created by <NAME> on 30/08/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRMenuTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *name;
@en... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/AppsViewController/IRAppsViewController.h | //
// IRAppsViewController.h
// ExpenseMobile
//
// Created by <NAME> on 05/06/15.
// Copyright (c) 2015 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRAppsViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>
@end
|
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRHomeCollectionCell.h | //
// IRHomeCollectionCell.h
// ExpenseManager
//
// Created by <NAME> on 17/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRHomeCollectionCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UI... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/CurrencyViewController/IRCurrencyViewController.h | //
// IRCurrencyViewController.h
// ExpenseManager
//
// Created by <NAME> on 07/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRCurrencyViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UISearchDisplayDelegate>
@end
|
mohsinalimat/ExpenseManager | iRun/FAQ/IRFAQQuestionCell.h | //
// GSFAQQuestionCell.h
// GoSafe
//
// Created by <NAME> on 19/03/14.
// Copyright (c) 2014 Tata Consultancy Services. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRFAQQuestionCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *question;
@end
|
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRPointsTableViewCell.h | //
// IRPointsTableViewCell.h
// ExpenseMobile
//
// Created by <NAME> on 14/01/15.
// Copyright (c) 2015 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol PointTableDelegate <NSObject>
- (void)switchTapped:(id)sender;
@end
@interface IRPointsTableViewCell : UITableViewCell
@property (weak, no... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/SettingsViewController/IRSettingsViewController.h | <gh_stars>1-10
//
// IRSettingsViewController.h
// iRun
//
// Created by <NAME> on 30/08/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#import "SWRevealViewController.h"
#import <Social/Social.h>
@interface IRSettingsViewController : UIViewContro... |
mohsinalimat/ExpenseManager | iRun/Classes/Model/IRCategory.h | <gh_stars>1-10
//
// IRCategory.h
// ExpenseManager
//
// Created by <NAME> on 07/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <Foundation/Foundation.h>
@class CategoryGroup;
@interface IRCategory : NSObject
@property (strong, nonatomic) NSString *categoryName;
@property (assign, nonatom... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/SyncViewController/IRSyncViewController.h | <filename>iRun/Classes/ViewControllers/SyncViewController/IRSyncViewController.h
//
// IRSyncViewController.h
// ExpenseMobile
//
// Created by <NAME> on 05/06/15.
// Copyright (c) 2015 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRSyncViewController : UIViewController
@end
|
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRExpenseHeaderTableViewCell.h | //
// IRExpenseHeaderTableViewCell.h
// ExpenseManager
//
// Created by <NAME> on 08/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRExpenseHeaderTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *categoryName;
@property (weak, nonatomi... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/CalenderViewController/IRCalenderViewController.h | //
// IRCalenderViewController.h
// ExpenseManager
//
// Created by <NAME> on 06/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TSQCalendarCell.h"
#import "TSQCalendarMonthHeaderCell.h"
#import "TSQCalendarRowCell.h"
#import "TSQCalendarView.h"
@protocol IRCalende... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/ExpenseListViewController/IRExpenseListViewController.h | //
// IRExpenseDetailViewController.h
// ExpenseManager
//
// Created by <NAME> on 08/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
@interface IRExpenseListViewController : UIViewController <UITableViewDataSource,UITableViewDelegate,UIAlertViewD... |
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRHIstoryTableViewCell.h | <reponame>mohsinalimat/ExpenseManager<filename>iRun/Classes/CustomCells/IRHIstoryTableViewCell.h
//
// IRHIstoryTableViewCell.h
// ExpenseManager
//
// Created by <NAME> on 15/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRHIstoryTableViewCell : UITableViewCell
@... |
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRCalenderRowCell.h | //
// IRCalenderRowCell.h
// ExpenseManager
//
// Created by <NAME> on 06/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import "TSQCalendarRowCell.h"
@interface IRCalenderRowCell : TSQCalendarRowCell
@end
|
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRAppsTableViewCell.h | //
// IRAppsTableViewCell.h
// ExpenseMobile
//
// Created by <NAME> on 05/06/15.
// Copyright (c) 2015 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRAppsTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *appTitle;
@property (weak, nonatomic) IBOutlet UILabel *ap... |
mohsinalimat/ExpenseManager | iRun/Classes/ApplicationController/IRApplicationController.h | <gh_stars>1-10
//
// IRApplicationController.h
// ExpenseManager
//
// Created by <NAME> on 30/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface IRApplicationController : NSObject
+ (IRApplicationController *)sharedInstance;
- (void)showAlertForDailyReminde... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/BuyPremiumViewController/IRBuyPremiumViewController.h | <gh_stars>1-10
//
// IRBuyPremiumViewController.h
// ExpenseMobile
//
// Created by <NAME> on 05/06/15.
// Copyright (c) 2015 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <StoreKit/StoreKit.h>
@interface IRBuyPremiumViewController : UIViewController<SKProductsRequestDelegate,SKPaymentTransactio... |
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRHistoryHeaderTableViewCell.h | <filename>iRun/Classes/CustomCells/IRHistoryHeaderTableViewCell.h<gh_stars>1-10
//
// IRHistoryHeaderTableViewCell.h
// ExpenseManager
//
// Created by <NAME> on 15/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRHistoryHeaderTableViewCell : UITableViewCell
@prope... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/MenuViewController/IRMenuTableViewController.h | //
// IRMenuTableViewController.h
// iRun
//
// Created by <NAME> on 30/08/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRMenuTableViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>
@end
|
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRCategoryTableViewCell.h | //
// IRCategoryTableViewCell.h
// ExpenseManager
//
// Created by <NAME> on 04/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol CategoryCellDelegate <NSObject>
- (void)didTapCalenderButton;
@end
@interface IRCategoryTableViewCell : UITableViewCell
@property (weak... |
mohsinalimat/ExpenseManager | iRun/Classes/Components/Notification/IRNotification.h | //
// IRNotification.h
// ExpenseManager
//
// Created by <NAME> on 29/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface IRNotification : NSObject
- (void)showNotification:(IRNotification *)notifcationParams;
- (void)cancelAllNotifications;
- (void)cancelNo... |
mohsinalimat/ExpenseManager | iRun/Classes/Components/Gamification/IRGamification.h | //
// IRGamification.h
// ExpenseManager
//
// Created by <NAME> on 30/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface IRGamification : NSObject
+ (IRGamification *)sharedInstance;
- (NSArray *)getArrayOfOverViewText;
- (NSArray *)getArrayOfOverViewTextFo... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/CategoryDetailViewController/IRCategoryDetailViewController.h | //
// IRCategoryDetailViewController.h
// ExpenseManager
//
// Created by <NAME> on 07/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum {
CTAdd,
CTEdit
}
CategoryType;
@interface IRCategoryDetailViewController : UIViewController<UITableViewDataSource,UITab... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/GeneralSettingsViewController/IRGeneralSettingsViewController.h | <filename>iRun/Classes/ViewControllers/GeneralSettingsViewController/IRGeneralSettingsViewController.h
//
// IRGeneralSettingsViewController.h
// ExpenseManager
//
// Created by <NAME> on 13/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "IRGeneralSettingsTableViewCell... |
mohsinalimat/ExpenseManager | iRun/Classes/Common/IRConstants.h | <gh_stars>1-10
//
// IRConstants.h
// iRun
//
// Created by <NAME> on 30/08/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#define THEME_COLOR [UIColor colorWithRed:16.0/255.0 green:100.0/255.0 blue:180.0/255.0 alpha:1.0] // Blue Color
#define APPLICATION_NAME @"Expense Mobile"
#define OK_TEXT @"OK"
#de... |
mohsinalimat/ExpenseManager | iRun/Classes/CustomCells/IRThemeCollectionViewCell.h | //
// IRThemeCollectionViewCell.h
// ExpenseManager
//
// Created by <NAME> on 13/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRThemeCollectionViewCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UILabel *selectionLabel;
@end
|
mohsinalimat/ExpenseManager | iRun/Classes/Components/NumberPad/FPNumberPadView.h | //
// FPNumberPadView.h
// FPNumberPadView
//
// Created by <NAME> on 5/11/12.
// Copyright (c) 2012 Absolutely iOS. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Softwa... |
mohsinalimat/ExpenseManager | iRun/Classes/Entity/Expense.h | //
// Expense.h
// ExpenseManager
//
// Created by <NAME> on 13/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class CategoryGroup;
@interface Expense : NSManagedObject
@property (nonatomic) NSNumber * amount;
@property (nonatomic) N... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/ThemeViewController/IRThemeViewController.h | <gh_stars>1-10
//
// IRThemeViewController.h
// ExpenseManager
//
// Created by <NAME> on 13/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface IRThemeViewController : UIViewController<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayo... |
mohsinalimat/ExpenseManager | iRun/Classes/CoreData/IRCoreDataController.h | <filename>iRun/Classes/CoreData/IRCoreDataController.h<gh_stars>1-10
//
// IRCoreDataController.h
// ExpenseManager
//
// Created by <NAME> on 04/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class IRExpense;
@class IRCategory;
@inte... |
mohsinalimat/ExpenseManager | iRun/Classes/ViewControllers/CategoryViewController/IRCategoryViewController.h | //
// IRAddCategoryViewController.h
// ExpenseManager
//
// Created by <NAME> on 05/09/14.
// Copyright (c) 2014 Shibin. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <iAd/iAd.h>
@interface IRCategoryViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UIAlertViewDelegate>
@end
|
dycodex/BQ35100-Arduino | src/BQ35100.h | <filename>src/BQ35100.h<gh_stars>0
#ifndef BATTERY_GAUGE_BQ35100_H
#define BATTERY_GAUGE_BQ35100_H
#include <Wire.h>
#include <stdint.h>
#include "BQ35100_registers.h"
/**
* BQ35100 battery status.
*/
typedef struct {
bool isDischargeDetected;
bool isAlertActive;
} battery_status_t;
/**
* BQ35100 battery ... |
dycodex/BQ35100-Arduino | src/BQ35100_registers.h | <reponame>dycodex/BQ35100-Arduino
#ifndef BQ35100_REGISTERS_H
#define BQ35100_REGISTERS_H
#define BQ35100_READ_VOLTAGE_MSB 0x09
#define BQ35100_READ_VOLTAGE_LSB 0x08
#define BQ35100_READ_BATTERY_STATUS 0x0A
#define BQ35100_READ_CURRENT_MSB 0x0D
#define BQ35100_READ_CURRENT_LSB 0x0C
#en... |
hietalajulius/rs-torch-panda | franka_ws/src/controller_test/include/controller_test/cartesian_pose_example_controller.h | // Copyright (c) 2017 <NAME> GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#pragma once
#include <array>
#include <memory>
#include <string>
#include <controller_interface/multi_interface_controller.h>
#include <franka_hw/franka_state_interface.h>
#include <hardware_interface/robo... |
hietalajulius/rs-torch-panda | franka_ws/devel/include/controller_test/JointTorqueComparison.h | <filename>franka_ws/devel/include/controller_test/JointTorqueComparison.h
// Generated by gencpp from file controller_test/JointTorqueComparison.msg
// DO NOT EDIT!
#ifndef CONTROLLER_TEST_MESSAGE_JOINTTORQUECOMPARISON_H
#define CONTROLLER_TEST_MESSAGE_JOINTTORQUECOMPARISON_H
#include <string>
#include <vector>
#in... |
jmpews/tcpscan | tcpscan.c | <filename>tcpscan.c
#define _BSD_SOURCE 1
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <libnet.h>
#include <pcap.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <net/ethernet.h>
#include <pthread.h>
static u_int32_t s_src_ipaddr; /* ip address of this host */
static libnet_t *s... |
AlaricEgli/Openpilotcrazy | selfdrive/ui/tuning.h | /**************************************
Tuning UI
Author: pjlao307
This OpenPilot mod allows you to dynamically modify variables used by OpenPilot.
The purpose of this mod is to make it easier to tweak certain variables instead of
having to modify code, recompile, reboot after every change.
To use this mo... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/Data/MXRoomMember.h | /*
Copyright 2014 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/Utils/MXBugReportRestClient.h | /*
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/Data/Store/MXFileStore/MXFileStoreMetaData.h | /*
Copyright 2014 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/Data/EventsEnumerator/MXEventsEnumeratorOnArray.h | /*
Copyright 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/JSONModels/MXRoomAliasResolution.h | //
// MXRoomAliasResolution.h
// Pods
//
// Created by Element on 28/03/2022.
//
#ifndef MXRoomAliasResolution_h
#define MXRoomAliasResolution_h
#import "MXJSONModel.h"
/**
The result of a server resolving a room alias via /directory/room/ endpoint
into a cannonical identifier with servers that are aware of thi... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/Data/EventsEnumerator/MXEventsEnumerator.h | <gh_stars>0
/*
Copyright 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
lucasfeijo/matrix-ios-sdk | MatrixSDK/Data/EventsEnumerator/MXEventsByTypesEnumeratorOnArray.h | /*
Copyright 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable... |
cztk/enet | address.c | <gh_stars>1-10
/**
@file list.c
@brief ENet linked list functions
*/
#define ENET_BUILDING_LIB 1
#include "enet/enet.h"
#include <stdio.h>
#include <string.h>
// http://rosettacode.org/wiki/Parse_an_IP_Address#C
static unsigned int _parseDecimal ( const char** pchCursor )
{
unsigned int nVal = 0;
char chN... |
cztk/enet | unix.c | <filename>unix.c
/**
@file unix.c
@brief ENet Unix system specific functions
*/
#ifndef _WIN32
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#defin... |
gongshuxuelang/cudaDBN | inc/rwDate_dec.h | #ifndef __RWDATE_DEC_H__
#define __RWDATE_DEC_H__
#include "MAT.h"
class rwDate_dec:public rwDate
{
public:
virtual bool ReadDate(); //读数据
virtual bool Write_Date(); //写数据
virtual void Print_rwDate(); //打印数据
virtual pRWD ge... |
gongshuxuelang/cudaDBN | inc/rwDate.h | <reponame>gongshuxuelang/cudaDBN
#ifndef __RWDATE_H__
#define __RWDATE_H__
#include "MAT.h"
class rwDate
{
public:
rwDate(){}
virtual ~rwDate(){}
virtual bool ReadDate() = 0; //读数据
virtual bool Write_Date() = 0; //写数据
virtual void Pr... |
gongshuxuelang/cudaDBN | inc/head.h | #ifndef __HEAD_H__
#define __HEAD_H__
#include <iostream>
#include <thread>
#include <fstream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <string>
#include <cassert>
#include <cuda_runtime.h> //cuda头文件
#include <boost/lexical_cast.hpp>
#include <boost/atomic.hpp>//boost原子操作
#define BOOST_THR... |
guidoreina/classes | util/skiplist.h | #ifndef UTIL_SKIPLIST_H
#define UTIL_SKIPLIST_H
// Implementation of the skiplist invented by <NAME>:
// ftp://ftp.cs.umd.edu/pub/skipLists/skiplists.pdf
// ftp://ftp.cs.umd.edu/pub/skipLists/skipLists.c
//
// Limitations:
// This implementation is not thread-safe.
#include <stdlib.h>
#include <new>
#include "util/mi... |
guidoreina/classes | io/sequential_write_only_file.h | <gh_stars>1-10
#ifndef IO_SEQUENTIAL_WRITE_ONLY_FILE_H
#define IO_SEQUENTIAL_WRITE_ONLY_FILE_H
#include "io/write_only_file.h"
namespace io {
class sequential_write_only_file : public write_only_file {
public:
// Constructor.
sequential_write_only_file();
// Destructor.
~sequential_write_only_file();
... |
guidoreina/classes | util/number.h | #ifndef UTIL_NUMBER_H
#define UTIL_NUMBER_H
#include <sys/types.h>
#include <stdint.h>
#include <limits.h>
namespace util {
class number {
public:
static size_t length(off_t number);
// Parse.
enum parse_result {
kParseError,
kParseUnderflow,
kParseOverflow,
kP... |
guidoreina/classes | util/pair.h | #ifndef UTIL_PAIR_H
#define UTIL_PAIR_H
#include "util/move.h"
namespace util {
template<typename _T1, typename _T2>
struct pair {
typedef _T1 first_type;
typedef _T2 second_type;
_T1 first;
_T2 second;
// Constructor.
pair();
pair(const _T1& a, const _T2& b);
pair(_T1&& a, _T2&&... |
guidoreina/classes | io/write_only_file.h | #ifndef IO_WRITE_ONLY_FILE_H
#define IO_WRITE_ONLY_FILE_H
#include <stdint.h>
namespace io {
class write_only_file {
public:
// Open.
virtual bool open(const char* filename) = 0;
// Close.
virtual bool close() = 0;
// Write.
virtual bool write(const void* buf, size_t count) = 0;
protected:
... |
guidoreina/classes | util/minus.h | #ifndef UTIL_MINUS_H
#define UTIL_MINUS_H
namespace util {
template<typename _T>
struct minus {
int operator()(const _T& x, const _T& y) const;
};
template<typename _T>
inline int minus<_T>::operator()(const _T& x, const _T& y) const
{
return x - y;
}
}
#endif // UTIL_MINUS_H
|
guidoreina/classes | util/concurrent/locks/mutex.h | #ifndef UTIL_CONCURRENT_LOCKS_MUTEX_H
#define UTIL_CONCURRENT_LOCKS_MUTEX_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <pthread.h>
namespace util {
namespace concurrent {
namespace locks {
class mutex {
public:
// Constructor.
mutex();
// Des... |
guidoreina/classes | net/internet/url.h | #ifndef NET_INTERNET_URL_H
#define NET_INTERNET_URL_H
#include "net/internet/scheme.h"
#include "string/buffer.h"
#include "macros/macros.h"
namespace net {
namespace internet {
bool is_unreserved(unsigned char c);
bool is_reserved(unsigned char c);
bool is_gen_delim(unsigned char c);
bool is_sub_delim(unsig... |
guidoreina/classes | util/concurrent/arena.h | <gh_stars>1-10
#ifndef UTIL_CONCURRENT_ARENA_H
#define UTIL_CONCURRENT_ARENA_H
// Simple thread-safe allocator.
#include <stdlib.h>
#include "util/concurrent/locks/mutex.h"
namespace util {
namespace concurrent {
class arena {
public:
// Constructor.
arena();
// Destructor.
~arena();
// A... |
guidoreina/classes | string/memcasemem.h | <gh_stars>1-10
#ifndef STRING_MEMCASEMEM_H
#define STRING_MEMCASEMEM_H
namespace string {
void* memcasemem(const void* haystack, size_t haystacklen, const void* needle, size_t needlelen);
}
#endif // STRING_MEMCASEMEM_H
|
guidoreina/classes | util/min_priority_queue.h | <reponame>guidoreina/classes
#ifndef UTIL_MIN_PRIORITY_QUEUE_H
#define UTIL_MIN_PRIORITY_QUEUE_H
#include <stdlib.h>
#include <string.h>
#include <new>
#include "util/move.h"
namespace util {
template<typename _Tp>
class min_priority_queue {
public:
typedef _Tp value_type;
// Constructor.
m... |
guidoreina/classes | util/concurrent/locks/spinlock.h | #ifndef UTIL_CONCURRENT_LOCKS_SPINLOCK_H
#define UTIL_CONCURRENT_LOCKS_SPINLOCK_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <pthread.h>
namespace util {
namespace concurrent {
namespace locks {
class spinlock {
public:
// Constructor.
spinlock();
// Destructor.
... |
guidoreina/classes | util/vector.h | <filename>util/vector.h
#ifndef UTIL_VECTOR_H
#define UTIL_VECTOR_H
#include <stdlib.h>
#include <new>
#include "util/move.h"
namespace util {
template<typename _Tp>
class vector {
public:
typedef _Tp value_type;
// Constructor.
vector();
vector(vector&& other);
// Destructor.
... |
guidoreina/classes | util/concurrent/atomic/pointer.h | <filename>util/concurrent/atomic/pointer.h
#ifndef UTIL_CONCURRENT_ATOMIC_POINTER_H
#define UTIL_CONCURRENT_ATOMIC_POINTER_H
#include "util/concurrent/atomic/atomic.h"
namespace util {
namespace concurrent {
namespace atomic {
template<typename _T>
class pointer {
public:
// Constructor.
pointe... |
guidoreina/classes | util/block.h | #ifndef UTIL_BLOCK_H
#define UTIL_BLOCK_H
#include <stdint.h>
#include <endian.h>
namespace util {
typedef uint32_t blocklen_t;
class block {
private:
struct header {
blocklen_t size;
};
const unsigned char* _M_data;
public:
static const size_t kMinSize = sizeof(struct header);
static cons... |
guidoreina/classes | string/memrchr.h | #ifndef STRING_MEMRCHR_H
#define STRING_MEMRCHR_H
namespace string {
const void* memrchr(const void* s, int c, size_t n);
}
#endif // STRING_MEMRCHR_H
|
guidoreina/classes | util/red_black_tree.h | #ifndef UTIL_RED_BLACK_TREE_H
#define UTIL_RED_BLACK_TREE_H
// Implementation of the Red-Black-Tree algorithm of the book:
// "Introduction to Algorithms", by Cormen, Leiserson, Rivest and Stein.
#include <stdlib.h>
#include <stdint.h>
#include <memory>
#include "util/minus.h"
namespace util {
template<typename _K... |
guidoreina/classes | util/concurrent/skiplist.h | #ifndef UTIL_CONCURRENT_SKIPLIST_H
#define UTIL_CONCURRENT_SKIPLIST_H
// Implementation of a concurrent skiplist following the algorithm described
// in the book: "The Art of Multiprocessor Programming, Revised Print"
// http://www.amazon.com/books/dp/0123973376
// and in the algorithm described in: "Practical lock-fr... |
guidoreina/classes | util/concurrent/locks/condvar.h | #ifndef UTIL_CONCURRENT_LOCKS_CONDVAR_H
#define UTIL_CONCURRENT_LOCKS_CONDVAR_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <pthread.h>
namespace util {
namespace concurrent {
namespace locks {
class condvar {
public:
// Constructor.
co... |
guidoreina/classes | util/move.h | <filename>util/move.h
#ifndef UTIL_MOVE_H
#define UTIL_MOVE_H
namespace util {
template<typename _T>
struct remove_reference {
typedef _T type;
};
template<typename _T>
struct remove_reference<_T&> {
typedef _T type;
};
template<typename _T>
struct remove_reference<_T&&> {
typedef _T type... |
guidoreina/classes | string/buffer.h | <filename>string/buffer.h<gh_stars>1-10
#ifndef STRING_BUFFER_H
#define STRING_BUFFER_H
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
namespace string {
class buffer {
public:
static const size_t kDefaultInitialSize = 64;
// Constructor.
buffer(size_t initial_size = kDefaultInitialSize);
... |
guidoreina/classes | util/concurrent/atomic/atomic.h | #ifndef UTIL_CONCURRENT_ATOMIC_ATOMIC_H
#define UTIL_CONCURRENT_ATOMIC_ATOMIC_H
namespace util {
namespace concurrent {
namespace atomic {
static inline void memory_barrier()
{
asm volatile("" : : : "memory");
}
template<typename _T>
static inline bool bool_compare_and_swap(_T* ptr, _T oldval, _... |
guidoreina/classes | util/file_block_reader.h | <reponame>guidoreina/classes<filename>util/file_block_reader.h<gh_stars>1-10
#ifndef UTIL_FILE_BLOCK_READER_H
#define UTIL_FILE_BLOCK_READER_H
#include "util/block_reader.h"
#include "fs/file.h"
namespace util {
class file_block_reader : public block_reader {
public:
// Constructor.
file_block_reader(fs::fil... |
guidoreina/classes | util/fifo.h | #ifndef UTIL_FIFO_H
#define UTIL_FIFO_H
#include <stdlib.h>
#include <memory>
#include "util/move.h"
namespace util {
template<typename _T>
class fifo {
public:
// Constructor.
fifo();
fifo(fifo&& other);
// Destructor.
~fifo();
// Clear.
void clear();
// Emp... |
guidoreina/classes | util/concurrent/atomic/markable_ptr.h | #ifndef UTIL_CONCURRENT_ATOMIC_MARKABLE_PTR_H
#define UTIL_CONCURRENT_ATOMIC_MARKABLE_PTR_H
#include <stdint.h>
#include "util/concurrent/atomic/atomic.h"
namespace util {
namespace concurrent {
namespace atomic {
template<typename _T>
class markable_ptr {
public:
// Constructor.
markable_ptr()... |
guidoreina/classes | ipc/message_queue.h | <reponame>guidoreina/classes<filename>ipc/message_queue.h<gh_stars>1-10
#ifndef IPC_MESSAGE_QUEUE_H
#define IPC_MESSAGE_QUEUE_H
#include <fcntl.h>
#include <stdio.h>
#include <mqueue.h>
#include <limits.h>
namespace ipc {
class message_queue {
public:
// Constructor.
message_queue(bool unlink_in_des... |
guidoreina/classes | net/http/date.h | <filename>net/http/date.h
#ifndef NET_HTTP_DATE_H
#define NET_HTTP_DATE_H
#include <stdint.h>
#include <time.h>
#include "util/ctype.h"
#include "macros/macros.h"
namespace net {
namespace http {
class date {
public:
static time_t parse(const void* buf, size_t len, struct tm& timestamp);
s... |
guidoreina/classes | util/varint.h | #ifndef UTIL_VARINT_H
#define UTIL_VARINT_H
// Varint:
// https://developers.google.com/protocol-buffers/docs/encoding#varints
#include <stdint.h>
#include "string/buffer.h"
namespace util {
class varint {
public:
// Encode.
static bool encode(uint64_t n, string::buffer& buf);
static bool encode(uint64_t... |
guidoreina/classes | util/block_reader.h | #ifndef UTIL_BLOCK_READER_H
#define UTIL_BLOCK_READER_H
#include "util/block.h"
#include "string/buffer.h"
namespace util {
class block_reader {
public:
static const size_t kBufferSize = 4 * 1024;
// Constructor.
block_reader();
// Get next block.
enum error {
kNoMemory,
kBlockTooBig,
... |
guidoreina/classes | net/internet/scheme.h | #ifndef NET_INTERNET_SCHEME_H
#define NET_INTERNET_SCHEME_H
// Subset of the schemes.
// http://www.iana.org/assignments/uri-schemes.html
#include "macros/macros.h"
namespace net {
namespace internet {
struct scheme {
public:
static const size_t kMaxLen = 32;
static const unsigned char kFile = 0;
... |
npmccallum/krb5-pake | src/server.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/pake/test.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/pake/spake_constants.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/cookie.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/global.c | /*
* Copyright 2015 Red Hat, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
npmccallum/krb5-pake | src/pake/asn1.h | <filename>src/pake/asn1.h
/*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above... |
npmccallum/krb5-pake | src/client.c | <reponame>npmccallum/krb5-pake<filename>src/client.c<gh_stars>1-10
/*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistribut... |
npmccallum/krb5-pake | src/common.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/kconv.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/pake/spake.c | <filename>src/pake/spake.c
/*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the abov... |
npmccallum/krb5-pake | src/pake/asn1.c | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/pake/jpake.c | <gh_stars>1-10
/*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
... |
npmccallum/krb5-pake | src/common.h | /*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... |
npmccallum/krb5-pake | src/pake/conv.c | <gh_stars>1-10
/*
* Copyright (c) 2015 Red Hat, Inc.
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
... |
smiley/ebpf-for-windows | libs/api/unwind_helper.h | /*
* Copyright (c) Microsoft Corporation
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <functional>
/**
* @brief A helper object to invoke a function when the object goes out of
* scope.
*
*/
class _unwind_helper
{
public:
/**
* @brief Construct a new unwind helper object
*
* @p... |
smiley/ebpf-for-windows | libs/execution_context/ebpf_protocol.h | <reponame>smiley/ebpf-for-windows
/*
* Copyright (c) Microsoft Corporation
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "ebpf_helpers.h"
#include "ebpf_windows.h"
typedef enum _ebpf_operation_id
{
EBPF_OPERATION_RESOLVE_HELPER,
EBPF_OPERATION_RESOLVE_MAP,
EBPF_OPERATION_CREATE_PROGRAM,
... |
smiley/ebpf-for-windows | libs/execution_context/ebpf_program.c | /*
* Copyright (c) Microsoft Corporation
* SPDX-License-Identifier: MIT
*/
#include "ebpf_program.h"
#include "ebpf_core.h"
#include "ebpf_epoch.h"
#include "ebpf_link.h"
#include "ebpf_object.h"
typedef struct _FILE FILE;
#include "ubpf.h"
typedef struct _ebpf_program
{
ebpf_object_t object;
ebpf_pro... |
smiley/ebpf-for-windows | include/ebpf_api.h | /*
* Copyright (c) Microsoft Corporation
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "ebpf_windows.h"
#ifdef __cplusplus
extern "C"
{
#endif
__declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_UNSPECIFIED = {0};
__declspec(selectany) ebpf_attach_type_t EBPF_ATTACH_TYPE_XDP = {
... |
smiley/ebpf-for-windows | include/ebpf_program_types.h | /*
* Copyright (c) Microsoft Corporation
* SPDX-License-Identifier: MIT
*/
#pragma once
#ifdef __midl
#define MIDL(x) x
#else
#define MIDL(x)
#endif
typedef enum _ebpf_helper_return_type
{
EBPF_RETURN_TYPE_INTEGER = 0,
EBPF_RETURN_TYPE_PTR_TO_MAP_VALUE_OR_NULL,
EBPF_RETURN_TYPE_VOID,
} ebpf_helper_r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.